name: pre-commit run_id: commands[2] env HOME: /home/jenkins env LANG: C.UTF-8 env PATH: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit/bin:/opt/pyenv/bin:/tmp/venv-utXv/bin:/opt/pyenv/shims:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin env PYTHONHASHSEED: 2684920748 env PIP_DISABLE_PIP_VERSION_CHECK: 1 env PYTHONIOENCODING: utf-8 env OLM_TIMER1: 3000 env OLM_TIMER2: 2000 env TOX_ENV_NAME: pre-commit env TOX_WORK_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox env TOX_ENV_DIR: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit env VIRTUAL_ENV: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit metadata pid: 29177 cwd: /w/workspace/transportpce-tox-verify-transportpce-master/tests allow: /w/workspace/transportpce-tox-verify-transportpce-master/.tox/pre-commit/bin/*:sh:cpan:sudo:which:fixCIcentOS8reposMirrors.sh cmd: pre-commit run --all-files --show-diff-on-failure exit_code: 1 [WARNING] hook id `remove-tabs` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. [WARNING] hook id `perltidy` uses deprecated stage names (commit) which will be removed in a future version. run: `pre-commit migrate-config` to automatically fix this. [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. [WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint. [INFO] Initializing environment for https://github.com/jorisroovers/gitlint:./gitlint-core[trusted-deps]. [INFO] Initializing environment for https://github.com/Lucas-C/pre-commit-hooks. [INFO] Initializing environment for https://github.com/pre-commit/mirrors-autopep8. [INFO] Initializing environment for https://github.com/perltidy/perltidy. [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/Lucas-C/pre-commit-hooks. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/pre-commit/mirrors-autopep8. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... [INFO] Installing environment for https://github.com/perltidy/perltidy. [INFO] Once installed this environment will be reused. [INFO] This may take a few minutes... trim trailing whitespace.................................................Failed - hook id: trailing-whitespace - exit code: 1 - files were modified by this hook Fixing tests/transportpce_tests/network/test01_topo_extension.py Tabs remover.............................................................Passed autopep8.................................................................Failed - hook id: autopep8 - exit code: 1 Traceback (most recent call last): File "/home/jenkins/.cache/pre-commit/repounaealzk/py_env-python3.11/bin/autopep8", line 8, in sys.exit(main()) ^^^^^^ File "/home/jenkins/.cache/pre-commit/repounaealzk/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 4543, in main results = fix_multiple_files(args.files, args, sys.stdout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jenkins/.cache/pre-commit/repounaealzk/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 4438, in fix_multiple_files ret = _fix_file((name, options, output)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jenkins/.cache/pre-commit/repounaealzk/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 4408, in _fix_file return fix_file(*parameters) ^^^^^^^^^^^^^^^^^^^^^ File "/home/jenkins/.cache/pre-commit/repounaealzk/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 3604, in fix_file fixed_source = fix_lines(fixed_source, options, filename=filename) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/jenkins/.cache/pre-commit/repounaealzk/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 3584, in fix_lines fixed_source = fix.fix() ^^^^^^^^^ File "/home/jenkins/.cache/pre-commit/repounaealzk/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 618, in fix self._fix_source(filter_results(source=''.join(self.source), File "/home/jenkins/.cache/pre-commit/repounaealzk/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 562, in _fix_source modified_lines = fix(result) ^^^^^^^^^^^ File "/home/jenkins/.cache/pre-commit/repounaealzk/py_env-python3.11/lib/python3.11/site-packages/autopep8.py", line 766, in fix_e225 pycodestyle.missing_whitespace_around_operator(fixed, ts)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'pycodestyle' has no attribute 'missing_whitespace_around_operator'. Did you mean: 'whitespace_around_operator'? perltidy.................................................................Passed pre-commit hook(s) made changes. If you are seeing this message in CI, reproduce locally with: `pre-commit run --all-files`. To run `pre-commit` as part of git workflow, use `pre-commit install`. All changes made by hooks: diff --git a/tests/transportpce_tests/network/test01_topo_extension.py b/tests/transportpce_tests/network/test01_topo_extension.py index d8803f41..881584d8 100644 --- a/tests/transportpce_tests/network/test01_topo_extension.py +++ b/tests/transportpce_tests/network/test01_topo_extension.py @@ -124,7 +124,7 @@ class TransportPCEtesting(unittest.TestCase): 'ROADM-TC1-ROADM-TC1-SRG1-PP1-TXRXtoSPDR-SC1-XPDR1-XPDR1-NETWORK1', 'transportpce-or-network-augmentation:link-class': 'alien-to-tapi' } - + # uuid_A = uuid.UUID(bytes('SPDR-SA1-XPDR1+DSR+eOTSI+XPDR1-NETWORK1', 'utf-8')) # uuid_C = uuid.UUID(bytes('SPDR-SC1-XPDR1+DSR+eOTSI+XPDR1-NETWORK1', 'utf-8'))